#include "CCSpineObject.h"
#include "CCSpineGlobal.h"

NS_CC_BEGIN

CCSpineObject::CCSpineObject():CCObject(),m_name(NULL) {

}

CCSpineObject::~CCSpineObject() {
    if (m_name) {
        free((void*)m_name);
    }
}

void CCSpineObject::setName(const char* name) {
    assert(!m_name);
    m_name = CCSpineGlobal::copy(name);
}

NS_CC_END